<?php


namespace app\api\controller;

use app\common\controller\Frontend;

class Merchant extends Frontend
{
    protected array $noNeedLogin = [];


    public function initialize(): void
    {
        parent::initialize();
    }


    /**
     * 获取酒店信息
     * @throws Throwable
     */
    public function merchantInfo(){
        return json((new \app\api\model\Merchant())->merchantInfo($this->request_array));
    }

    /**
     * 获取订单总数
     * @throws Throwable
     */
    public function getOrderNums(){
        return json((new \app\api\model\Merchant())->getOrderNums($this->request_array));
    }


    /**
     * 获取订单列表
     * @throws Throwable
     */
    public function getOrderList(){
        return json((new \app\api\model\Merchant())->getOrderList($this->request_array));
    }


    /**
     * 获取订单详情
     * @throws Throwable
     */
    public function getOrderDetail(){
        return json((new \app\api\model\Merchant())->getOrderDetail($this->request_array));

    }


    /**
     * 操作订单
     * @throws Throwable
     */
    public function getOrderStatus(){
        return json((new \app\api\model\Merchant())->getOrderStatus($this->request_array));

    }


}
